package springbootyx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import springbootyx.service.IPlateService;
import springbootyx.entity.Plate;
import springbootyx.mapper.IPlateMapper;

import java.util.List;
@Service

public class PlateService implements IPlateService {

    @Autowired
    private IPlateMapper plateMapper;

    @Override
    public List<Plate> getAllPlate() {
        return plateMapper.getAllPlate();
    }


    @Override
    public Plate getPlateById(int bid) {
        return plateMapper.getPlateById(bid);
    }
}
